<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<include file="Public/title" title="{$seotitle}" />
</head>

<body>
<div class="mainWrap">

	<!--标题-->
    <div class="mainWrapHeader">
    	<h1 class="mainWrapTit">{$seotitle} - {$activity_info['name']}</h1>        
        <!--切换需要，写对应ID，及class-->
    </div>
    <!--标题-->

    <div class="mainWrapBd">
    	<table cellpadding="0" border="0" cellspacing="0" class="stdedit">
            <tr>
                <th>活动名称</th>
                <td>{$activity_info['name']}</td>

                <th>活动时间</th>
                <td>{$activity_info['activity_start_time']|date="Y/m/d",###} ~ {$activity_info['activity_end_time']|date="Y/m/d",###}</td>

                <th>下单截止时间</th>
                <td>{$activity_info['order_end_time']|date="Y/m/d",###}</td>

            </tr>

            <tr>               
                <th>上画时间</th>
                <td>{$activity_info['up_start_time']|date="Y/m/d",###} ~ {$activity_info['up_end_time']|date="Y/m/d",###}</td>

                <th>实际/预期店铺</th>
                <td>0/{$order_info|count}</td>

              	<th>审核员信息</th>
                <td>{$audit_info['name']}</td>

            </tr>

            <tr>                
				<th>审核员电话</th>
                <td>{$audit_info['mobile']}</td>

                <th>公司信息</th>
                <td>{$audit_info['company_name']}</td>

                <th>当前状态</th>
                <td>进行中</td>

            </tr>

            
        </table>

    </div>	


	
    <!--标题-->
    <div class="mainWrapHeader">
        <ul class="tab-nav clearfix">
            <li class="cur"><a href="#tab-info">订单信息</a></li>
            <!-- <li><a href="#tab-status">订单进度</a></li> -->
            <li><a href="#tab-ads">备选效果图</a></li>
        </ul>
        <!--切换需要，写对应ID，及class-->
    </div>
    <!--标题-->
    
    <div class="mainWrapBd">
    	<div class="tab-con" id="tab-info">
        	
            <!--列表-->
	        <table cellpadding="0" cellspacing="0" border="0" class="stdtable stdtablelist">
	            <colgroup>
	                <col />
	                <col />
	                <col />
	                <col />
	                <col />
	            </colgroup>

	            <thead>
	                <tr>
	                	
	                    <th class="center">ID</th>
	                    <th>订单号</th>
	                    <th>门店信息</th>
	                    <th>店长</th>                    
	                    <th>上画时间</th>
	                    <th>下画时间</th>
	                    <th>当前状态</th>   
	                    <th>添加时间</th>
	                    <th>操作</th>
	     
	                </tr>
	            </thead>
	           
	            <tbody>
	            	<volist name="order_info" id="fo">
	            		<?php
	            			//门店信息
	            			$store_info = M("store")->where(['id'=>$fo['store_id']])->find();

	            		?>
	                <tr>
	                    <td>{$fo['id']}</td>
	                    <td>{$fo['order_no']}</td>
	                    <td>{$store_info['store_name']}</td>
	                    <td>{$store_info['manager_name']} - {$store_info['mobile']}</td>
	                    <td><if condition="$fo['up_time'] eq ''">-<else/>{$fo['up_time']|date="Y/m/d",###}</if></td>
	                    <td><if condition="$fo['down_time'] eq ''">-<else/>{$fo['down_time']|date="Y/m/d",###}</if></td>        
	                    <td>未下单</td>
	                    <td>{$fo['add_time']|date="Y/m/d",###}</td>
	                    <td>XXXX</td>
	                </tr>
					</volist>
	                
	                <!-- <if condition="$pages['total'] eq 0">
	                <tr>
	                    <td align="center" class="data-nothing" colspan="8">暂无相关信息</td>
	                </tr>
	                </if> -->
	            </tbody>
	        </table>
	        <!--列表-->
            
        </div>
        <div class="tab-con" id="tab-status" style="display:none;">

        	<!--列表-->
	        <table cellpadding="0" cellspacing="0" border="0" class="stdtable stdtablelist">
	            <colgroup>
	                <col />
	                <col />
	                <col />
	                <col />
	            </colgroup>
	           
	            <tbody>
	                <tr>
	                    <td>物料制作下单</td>
	                    <td>由张三三下单</td>
	                    <td>2019/01/22 17:25</td>
	                    <td>xxx</td>        
	                </tr>

	                <tr>
	                    <td>订单审核通过</td>
	                    <td>由李思思审核</td>
	                    <td>2019/01/22 17:25</td>
	                    <td>xxx</td>        
	                </tr>

	                <tr>
	                    <td>订单已接收</td>
	                    <td>由张三三下单</td>
	                    <td>2019/01/22 17:25</td>
	                    <td>xxx</td>        
	                </tr>

	                <tr>
	                    <td>物料统一配送</td>
	                    <td>由张三三下单</td>
	                    <td>2019/01/22 17:25</td>
	                    <td>xxx</td>        
	                </tr>

	                <tr>
	                    <td>待上画</td>
	                    <td>由张三三下单</td>
	                    <td>2019/01/22 17:25</td>
	                    <td>xxx</td>        
	                </tr>

	                <tr>
	                    <td>待上画验收</td>
	                    <td>由张三三下单</td>
	                    <td>2019/01/22 17:25</td>
	                    <td>xxx</td>        
	                </tr>

	                <tr>
	                    <td>待下画</td>
	                    <td>由张三三下单</td>
	                    <td>2019/01/22 17:25</td>
	                    <td>xxx</td>        
	                </tr>

	                <tr>
	                    <td>待下画验收</td>
	                    <td>由张三三下单</td>
	                    <td>2019/01/22 17:25</td>
	                    <td>xxx</td>        
	                </tr>

	                <tr>
	                    <td>已完成</td>
	                    <td>由张三三下单</td>
	                    <td>2019/01/22 17:25</td>
	                    <td>xxx</td>        
	                </tr>
	                
	            </tbody>
	        </table>
	        <!--列表-->
        	
        </div>

		<?php
			//效果图信息
			$img_arr = explode(',', $activity_info['img_ids']);
	        
		?>
        <div class="tab-con" id="tab-ads" style="display:none;">
        	<div>
        		<volist name="img_arr" id="io">
        			<?php
        				$img_info = M('activity_image')->where(['id'=> $io])->find();
        			?>
        			<img src="{$img_info['image_url']}" style="width:300px;height:300px;"/>
        		</volist>	
        	</div>
        </div>
    </div>
    
</div>
</body>
</html>